import React, { Component } from 'react';
import {Toast} from 'antd-mobile'
import style from './Title.scss'

class Title extends Component {
    constructor(props) {
        super(props);
        this.state = {

        };
    }

		componentWillMount(){

		}

    render() {

        return (
            <div className={style.titleBox} style={{background:this.props.bgColor}}>
	            <div className={style.title+' '+(this.props.isLine?'':'noLine')}><i></i>{this.props.text}</div>
            </div>
        )
    }
}

Title.defaultProps = {}

export default Title